package com.marketingexpert.service.storemgnt.taobao.domain.impl;

import com.marketingexpert.service.storemgnt.MarketingPromotion;
import com.taobao.api.domain.Promotion;

public class TaobaoPromotion extends MarketingPromotion{

	public TaobaoPromotion(Promotion promotion, TaobaoItem taobaoItem) {			
		init(promotion,taobaoItem);
	}

	private void init(Promotion promotion, TaobaoItem taobaoItem) {
		
		this.item = taobaoItem;
		this.decreaseNum = promotion.getDecreaseNum();
		this.discountType = promotion.getDiscountType();
		this.discountValue = promotion.getDiscountValue();
		
		this.endDate = promotion.getEndDate();
		this.numIid = promotion.getNumIid();
		this.promotionDesc = promotion.getPromotionDesc();
		this.promotionId = promotion.getPromotionId();
		this.promotionTitle = promotion.getPromotionTitle();
		this.startDate = promotion.getStartDate();
		this.status = promotion.getStatus();
		this.tagId = promotion.getTagId();
	}
		
	
	
}
